<style>
	table
	{
		border:1px solid #000;
		border-collapse:collapse;
	}
	
	thead tr{
		background:#c0c0c0;
	}
	
	th,td{
		border:1px solid #000;
		padding:2px;
		text-align:center;
	}
	
	div.title{
		text-align:center;
		margin:10px;
		padding-bottom:6px;
		border-bottom:2px solid #666;
	}
	
	div.title h1
	{
		font-family:tahoma;
	}
	td.notice{
		padding:10px;
	}
</style>

<div class="title"><h1>Teaching Employees</h1></div>
<table>
		<thead>
			<tr>
				<th colspan="7"></th>
				<th colspan="2">Work Experience</th>
				<th colspan="2"></th>
			</tr>
			<tr>
				<th>Employee's Name</th>
				<th>Age</th>
				<th>Gender</th>
				<th>Position</th>
				<th>Baccalaureate</th>
				<th>Masters Degree</th>
				<th>Employement Status</th>
				<th>Administrative (Years)</th>
				<th>Teaching (Years)</th>
				<th>Subjects Handled</th>
				<th>Exams Taken</th>
			</tr>
		</thead>
		<tbody>
		<?if(!empty($teachers)):?>
			<?foreach($teachers as $a):?>
				<tr>
					<td><?=ucwords($a->firstname.' '.$a->middlename.' '.$a->lastname);?></td>
					<td><?=ucwords($a->age);?></td>
					<td><?=ucwords($a->gender);?></td>
					<td><?=ucwords($a->position);?></td>
					<td><?=ucwords($a->baccalaureate);?></td>
					<td><?=ucwords($a->masters);?></td>
					<td><?=ucwords($a->employment_stat);?></td>
					<td><?=ucwords($a->work_exp_admin);?></td>
					<td><?=ucwords($a->work_exp_teaching);?></td>
					<td><?=ucwords($a->subjects_handled);?></td>
					<td><?=ucwords($a->licensure_exams_taken);?></td>
				</tr>
			<?endforeach;?>
		<?else:?>
			<tr>
				<td colspan="10" class="notice"> <h1>Sorry, but there was no data recieved.</h1></td>
			</tr>
		<?endif;?>
		</tbody>
		<tfoot>
		</tfoot>
</table>